import App from './App'

// #ifndef VUE3
import Vue from 'vue'

// uview2.x
import uView from "uview-ui";
Vue.use(uView);

// vuex
import store from './store'

import util from '@/util/util.js'
const $j = {
	...util
}
uni.$j = $j
// #ifndef APP-NVUE
Vue.prototype.$j = $j
// #endif


Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
	store,
    ...App
})

// http
require("./util/http.js")(app)

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif